package com.socket.websocket.java;

import com.socket.batch.deal.AbstractDeal;
import com.socket.entity.GpsRecord;
import com.socket.websocket.java.WebSocketServer_java;

import java.io.IOException;
import java.util.concurrent.BlockingDeque;

/**
 * Created by kaddddd on 2017/7/7 0007.
 */
public class GpsPushThread implements Runnable{
    WebSocketServer_java webSocketServer;

    GpsPushThread(){
        webSocketServer = new WebSocketServer_java();
    }

    @Override
    public void run() {
        try {
            webSocketServer.sendMessage("11111111111");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        Thread thread = new Thread(new GpsPushThread());
        thread.start();
    }
}
